
import commonConfig from './config.default.js';
import devConfig from './config.dev.js';
import prodConfig from './config.prod.js';

const env="dev";

const configObj=env==="dev"?devConfig:prodConfig;

const resultConfig=Object.assign(commonConfig,configObj)

console.log("use config===>",env)

M.config=resultConfig;

if(M.config.watchFile){
    M.EventSource('/sseServer',function(e){
        console.log(e.data)
        location.reload()
    })
}
export default resultConfig;